package com.ali.gts.domain;

/**
 *
 *   构造一个复杂的类
 *
 */
public class AirPlane {
    //可以坐的人数
    Integer ckn;
    //飞机的长度
    Integer cd;

    public AirPlane(int ckn, int cd) {
        this.ckn = ckn;
        this.cd = cd;
    }
    public AirPlane() {

    }

    public int getCkn() {
        return ckn;
    }

    public void setCkn(int ckn) {
        this.ckn = ckn;
    }

    public int getCd() {
        return cd;
    }

    public void setCd(int cd) {
        this.cd = cd;
    }


    @Override
    public String toString() {
        return "AirPlane{" +
                "ckn=" + ckn +
                ", cd=" + cd +
                '}';
    }

    public static class AirPlaneStaticFactory {


        public static AirPlane getAirPlane(){

            AirPlane airPlane = new AirPlane();
            return airPlane;
        }
    }
}
